package com.qwz.learn.factory;

import com.qwz.learn.product.AbstractProductA;
import com.qwz.learn.product.AbstractProductB;
import com.qwz.learn.product.ProductA1;
import com.qwz.learn.product.ProductB1;
/**
* @Description: 具体的工厂实现对象，实现创建具体的产品对象的操作
* @Package com.qwz.learn.factory.ConcreteFactory1
* @author Qiuwuzhi
* @date 2019/12/16 10:44
* @version V1.0
*/
public class ConcreteFactory1 implements AbstractFactory {
    @Override
    public AbstractProductA createProductA() {
        return new ProductA1();
    }

    @Override
    public AbstractProductB createProductB() {
        return new ProductB1();
    }
}
